body{
  --accent-color: orangered;
  --background-color: white;
  --text-color: black;
  --button-text-color: var(--background-color);
  --transition-delay: 1s;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;

  background-color: var(--background-color);
  color: var(--text-color);
  transition: var(--transition-delay);

  overflow: hidden;
} 

body.dark{
  --accent-color: #d0d066;
  --background-color: #333;
  --text-color: white;
}

.main-title{
  margin: 0;
  margin-bottom: 25px;
}

.theme-switch-btn{
  background-color: var(--accent-color);
  color: var(--button-text-color);
  
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  padding: 8px 24px;
  border-radius: 6px;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 16px;

  transition: var(--transition-delay);
  transform: scale(1);
}

.theme-switch-btn .icon {
  margin-right: 10px;
  fill: var(--button-text-color);
}

.theme-switch-btn:hover,
.theme-switch-btn:focus {
  transform: scale(1.1);
}

.sun-moon-container{
  --rotation: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  pointer-events: none;
  height: 200vmin;
  top: 0;
  transform: rotate(calc(var(--rotation) * 1deg));
  transition: transform var(--transition-delay);
}

.dark .sun-moon-container{
  --rotation: 0;
}

.sun, .moon {
  position: absolute;
  transition: opacity, fill,  var(--transition-delay);
  width: 30px;
  height: 30px;
  fill: var(--accent-color)
}

.sun {
  top: 5%;
}

.dark .sun {
  opacity: 0;
}

.moon {
  bottom: 5%;
  opacity: 0;
  transform: rotate(180deg);
}

.dark .moon{
  opacity: 1;
}